<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/metaHead.jsp"%>

<div class="column half">
<div class="box">
<h2 class="box-header">用户管理</h2>
<div class="box-content">
	<form:form action="${mvcpath}/save.do" modelAttribute="entity" method="post">
	<form:hidden path="id" />
		
	 <label class="form-label required">登录名 </label>
	 <form:input path="loginName" title="登录名" cssClass="form-field width60"   />
			
	 <label class="form-label required">密码 </label>
	 <form:password path="password"  cssClass="form-field width60" />
		
	 <label class="form-label">角色</label>
	 <div class="radiocheck">
	  <c:forEach items="${allRoles}" var="item"> <input type="checkbox" id="${item.id}" value="${item.id}" name="rolesIds"/><label for="${item.id}">${item.rolename }</label></c:forEach>
	 </div>
	 
	 <label class="form-label required">姓名 </label>
	 <form:input path="name" title="名称" cssClass="form-field width60" />
		
	 <label class="form-label">是否可用</label>
	 <div class="radiocheck">
	 <input id="enabled1" type="radio" value="true" name="enabled"/><label for="enabled1">可用</label>
	 <input id="enabled2" type="radio" value="false" name="enabled"/><label for="enabled2">不可用</label>
	 </div>
				 
	 <label class="form-label">是否锁定</label>
	 <div class="radiocheck">
	 <input id="accountNonLocked1" type="radio" value="true" name="accountNonLocked"/><label for="accountNonLocked1">锁定</label>
     <input id="accountNonLocked2" type="radio" value="false" name="accountNonLocked"/><label for="accountNonLocked2">可用</label>
	 </div>
 
		<div class="clear"></div>
		<hr/>
		<div style="clear:both;height:36px;" >
		<ul style="float:right;">
			 <li style="float:left;"><input id="cancel" class="button themed" type="button" value="取 消" name="cancel" /></li>
			 <li style="float:left;"><input id="validate" class="button themed" type="submit" value="保 存" name="submit" /></li>
 		</ul>
		</div>
</form:form>

</div></div></div>

 <%@ include file="/common/foot.jsp"%>


  